package com.hitqz.robot.api.business.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 机器人管理表
 *
 * @author robot
 * @date 2024-06-06 15:18:09
 */
@Data
@TableName("job_caches")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "任务缓存")
public class JobCachesEntity extends Model<JobCachesEntity> {


	/**
	* 主键id
	*/
    @TableId(type = IdType.AUTO)
    @Schema(description="主键id")
    private Integer id;

	/**
	* 调度组群id
	*/
    @Schema(description="调度组群id")
    private Integer groupId;

	@Schema(description="任务名称")
	private String taskName;

	@Schema(description="任务序号")
	private Integer sn;

	@Schema(description="任务内容")
	private String taskContent;

	@Schema(description = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@Schema(description = "预分配的机器人id")
	private String clientId;

	@Schema(description = "任务类别")
	private String jobType;

	//@Schema(description = "任务编号")
	//private String taskNo;

}